package com.hbx.residential_service.service.impl;

import com.hbx.residential_service.dao.AdminDao;
import com.hbx.residential_service.domain.Admin;
import com.hbx.residential_service.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminDao adminDao;
    @Override
    public Admin adminLogin(String adminname, String adminpwd) throws Exception {
        return adminDao.adminLogin(adminname,adminpwd);
    }
}
